package com.orange.cetback.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.reactive.function.client.WebClient;

@Configuration
public class WebClientConfig {

    @Bean
    public WebClient webClient() {
        return WebClient.builder()
                .baseUrl("https://api.siliconflow.cn") // 替换为实际API地址https://api.siliconflow.cn/v1/chat/completions
                .build();
    }
}
